build: Bump minimum Meson version to 0.42.1
authorDebarshi Ray <debarshir@gnome.org>
Mon, 18 Sep 2017 16:04:34 +0000 (18:04 +0200)
committerDebarshi Ray <debarshir@gnome.org>
Mon, 18 Sep 2017 16:04:34 +0000 (18:04 +0200)
Otherwise it fails to build with:

  FAILED: gtk/im-ipa@sha/imipa.c.o
  ...
  In file included from ../gtk/gtkintl.h:4:0,
                   from ../modules/input/imipa.c:28:
  /opt/include/glib-2.0/glib/gi18n-lib.h:27:2: error: #error You must
          define GETTEXT_PACKAGE before including gi18n-lib.h. Did you
          forget to include config.h?
   #error You must define GETTEXT_PACKAGE before
           including gi18n-lib.h.  Did you forget to include config.h?
    ^~~~~
  ../modules/input/imipa.c:144:3: error: ‘GETTEXT_PACKAGE’ undeclared
          here (not in a function)
     GETTEXT_PACKAGE,     /* Translation domain */
     ^~~~~~~~~~~~~~~
  ../modules/input/imipa.c:145:4: error: ‘GTK_LOCALEDIR’ undeclared
          here (not in a function)
      GTK_LOCALEDIR,     /* Dir for bindtextdomain (not strictly
              needed for "gtk+") */
      ^~~~~~~~~~~~~

meson.build

index 5056352c33e197de869b38435f48fb6c3f0348e0..8135e5235eae70d7172606a4b66e03bef7130a35 100644 (file)
@@ -7,7 +7,7 @@ project('gtk+-4.0', 'c',
           # https://github.com/mesonbuild/meson/issues/2289
           'c_std=gnu99',
         ],
-        meson_version : '>= 0.40.0',
+        meson_version : '>= 0.42.1',
         license: 'LGPLv2.1+')
 
 glib_major_req = 2